package cn.clwxy.gdz.controller;

import java.io.IOException;
import java.util.List;

import javax.security.auth.message.callback.PrivateKeyCallback.Request;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;

import cn.clwxy.gdz.dao.OrderDao;
import cn.clwxy.gdz.dao.OrderDaoImpl;
import cn.clwxy.gdz.entity.Order;
import cn.clwxy.gdz.entity.Teacher;
import cn.clwxy.gdz.util.JsonSerializeHelper;

public class NewTeacherOrderServlet extends HttpServlet{

	@Override
	public void service(ServletRequest request, ServletResponse response)
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		
		
		request.getParameter("realName");
		request.getParameter("phone");
		request.getParameter("subjectId");
		Integer teacherId;
		
		try {
			teacherId=Integer.parseInt(request.getParameter("teacherId"));
		} catch (NumberFormatException e) {
			teacherId=1;
			e.printStackTrace();
		}
		
		OrderDao orderDao=new OrderDaoImpl(); 
		
		
		
		
		
	}

}
